package com.wp.admin.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

/**
 * @author wp
 * @create 2019-03-03 14:25
 */
@Data
@Table(name = "sys_menu")
public class SysMenu {
    @Id
    private Long id;

    private String name;

    private Long parentId;

    private String url;

    private String perms;

    private Integer type;

    private String icon;

    private Integer orderNum;

    private String createBy;

    private Date createTime;

    private String lastUpdateBy;

    private Date lastUpdateTime;

    private Boolean delFlag;

    @Transient
    private Integer level;

    @Transient
    private String parentName;

    @Transient
    private List<SysMenu> children;

}
